class CL_1 extends egret.DisplayObjectContainer {
    private imageName: string
    private speed: number = 3
    public constructor(imageName) {
        super()
        this.imageName = imageName
        this.once(egret.Event.ADDED_TO_STAGE, this.init, this)
    }
    private init() {
        this.createCL()
    }
    private createCL() {
        const container = new egret.Sprite()
        this.addChild(container)

        const mivaMask = Utils.createBitmapByName(this.imageName)
        mivaMask.height = 0
        container.addChild(mivaMask)

        const mivaItem = Utils.createBitmapByName(this.imageName)
        mivaItem.mask = mivaMask
        container.addChild(mivaItem)

        const juanzhou = Utils.createBitmapByName('juanzhou_1_png')
        Utils.anchorCenter(juanzhou)
        juanzhou.x = mivaItem.width / 2
        container.addChild(juanzhou)

        egret.Tween.get(mivaMask)
            .to({ height: mivaItem.height }, 1000 * this.speed)
        egret.Tween.get(juanzhou)
            .to({ y: mivaItem.height - 25 }, 1000 * this.speed)

        const shanzi = Utils.createBitmapByName('shan_png')
        this.addChild(shanzi)
        shanzi.x = -55
        shanzi.y = -80
        // Utils.dragGetPatn(shanzi, this)

        this.width = mivaItem.width
    }
}